{extend name="public/base"/}
{block name="style"}
<link rel="stylesheet" href="/public/lboyue/css/newStyle.css">
{/block}
{block name="body"}
{include file="public/header" /}
<div class="bodySection">
            
    <div class="centerSection">

		<div class="userLeft_block">
			{include file="public/leftuser" /}
		</div>

        <div class="userRight_block">
            <div class="userMoney">
                <div class="section_title2">账户资产</div>
                <div class="userMoney_block">
                    <div class="title">
                        <span>余额：<i>{$egold}</i>{:config('virtualname')}</span>
                        <span>VIP会员：{if $is_vip>0}{if $vip_enddate>=time()}还剩<i>{php} echo round(($vip_enddate-time())/86400);{/php}</i>天过期{else/}已过期{/if}{else/}未开通{/if}</span>
                    </div>

                    <div class="zf_title">请选择充值方式</div>

                    <div class="zf_block">
                        <div class="zf_button zf_button_active" paytype="1"><span class="border"><i class="wx"></i><i class="good"></i>微信支付</span></div>
																					<div class="zf_button " paytype="2"><span class="border"><i class="zfb"></i><i class="good"></i>支付宝支付</span></div>
                                            </div>

                    <div class="zf_type">
                        <div class="zf_type_left1" >
                            <div class="title_span">{:config('virtualname')}充值</div>

                            <div class="zf_fun">
                                <ul>
                                {volist name="freepay_setting" id="vo"}
								<li {if $i==1}class=" active "{/if}paymoney='{$vo.price|floatval}'  specialpayid='{$vo.id}'  specialpaytype='{$vo.type}' {if $i%2==0}class="odd "{/if}>
									<div class="top">
										<span>{$vo.egold}{:config('virtualname')}<i>+送{$vo.giveegold}书币</i>  </span>
									</div>
									<div class="bottom">¥{$vo.price|floatval}</div>
                                </li>
								{/volist}
                                </ul>

                            </div>

                        </div>

                        <div class="zf_type_left1  zf_type_right">
                            <div class="title_span  title_span2">VIP会员</div>

                            <div class="zf_fun">
                                <ul>
                                    {volist name="vippay_setting" id="vo"}                 <li paymoney='{$vo.price|floatval}'  specialpayid='{$vo.id}'  specialpaytype='{$vo.type}' {if $i%2==0}class="odd "{/if}>
                                        <div class="top">
                                            <span>{$vo.description}</span>
                                        </div>
                                        <div class="bottom">¥{if strpos($vo.price,".00")!==false}{$vo.price|str_replace=".00","",###}{else}{$vo.price|floatval}{/if}</div>
                                    </li>
									{/volist}                              
                                </ul>

                            </div>

                        </div>
                        
                    </div>
					<!---
                    <div class="zf_tipsBlock">充值10元，立送一张月票，为你喜欢的作者加油吧</div>-->
                    
                    <div id="paybtn" class="zf_submit">立即支付</div>

					<div class="wx_code wx_code4" id="codeWindow" style="display: none;0"><div class="wx_code_block" style=""><i class="arrow"></i><span class="title3">支付二维码</span><img src="http://open.weixin.qq.com/qr/code?username=bxwenxue" alt="" /><span class="tips">请用微信扫描二维码</span></div></div>

                    <div class="agreeCheckbox"><i class="active  checkboxPlugin" id="useragree"></i>我已阅读并同意《<a href="/static/agreement/">用户服务协议</a>》</div>

                    <div class="contact_kefu" style="line-height: 30px;">
                        客服电话：{$cfgtel}
                        客服qq：{$cfgqq}                      
                        <a target=blank class="qq_qun" href='tencent://message/?uin={$cfgqq}&Menu=yes'><img border="0" SRC=http://wpa.qq.com/pa?p=1:{$cfgqq}:1 alt="点击这里给我发消息"></a></div>

                    <div class="contact_kefu_title">备注</div>
                    <div class="contact_kefu">注册须遵守相关法律法规，禁止发布违法有害内容，一经发现，将举报。</div>

                </div>
            </div>
        </div>

    </div>
</div>



{block name="include"}{include file="public:footer" /}{/block}
{/block}
{block name="script"}
  <script type="text/javascript" src="/public/lboyue/js/pay.js"></script>
    <script type="text/javascript">
        paytype=1;
        paymoney=30;
        specialpaytype=9;
        $(document).ready(function () {

            bindpay(0,window.location.href);
            bindpaybtn(1);
            liactive("navpages", "pay", "a", "");
            setuseragree();
        });
    </script>

	<script>
		$(document).ready(function () {
			bindnews();
			bindbookshelf();
			bindnav();
		});

	</script>
{/block}

